<?php //$this->load->view(TEMPLATE_NAME.'/admin/header');?>
<?php //$this->load->view(TEMPLATE_NAME.'/admin/side_left');?>
<?php 
$CI =& get_instance();
$CI->load->library("admin/admin_header_lib");
$CI->admin_header_lib->display_header_element(array("script"=>array("jquery")));
$CI->admin_header_lib->display_header();

$CI->load->library('admin/admin_sidebar_lib');
$CI->admin_sidebar_lib->display_sidebar();

?>
<script type="text/javascript">
function confirmation(id,name) {
   
        var answer = confirm("Delete " + name +" ?");
    if (answer){   
        location = '<?php echo site_url("admin/request_a_quote/delete/")?>/'+ id;
    }else{
        return false;
    }
}  
</script>

<!--End  List-->
<div class="admin_right">
<div class="height7"></div>
<h2 class="head02">view quotes</h2>
<div class="line6"></div>
<table width="100%" class="grid_tbl">
	 <?php if(!empty($quotes_list)): ?>
    <?php foreach($quotes_list as $key=>$value): ?>
    <tr>
    	<td><?php echo $value['quote_companyname'] ?></td>
        <td><?php echo $value['quote_telephone'] ?></td>
        <td><?php echo $value['quote_email'] ?></td>
        <td><?php echo $value['quote_jobtitle'] ?></td>
        <td align="right"><a class="red13" href="<?php echo site_url('admin/request_a_quote/detail/'.$value['quote_id'].'/'.$page); ?>">detail</a> <span style="color:#d560ac">|</span> 
        			<a class="red13" style="cursor:pointer;" href="<?php echo site_url("admin/request_a_quote/delete")."/".$value['quote_id']?>" onclick="return confirm('Are you sure to delete this quote?')">delete</a></td>
                     <?php endforeach; ?>
       				 <?php endif; ?>
    </tr>
</table>

		
 <?php /*?><table>
       
       <tr><th>fullname</th><th></th><th>company</th><th></th><th>telephone</th><th></th><th>email</th><th><th>date<th></th></tr>
        <?php if(!empty($quotes_list)): ?>
        <?php foreach($quotes_list as $key=>$value): ?>
        <tr>
      
       <td><?php echo $value['quote_fullname'] ?></td>
       <td></td>
        <td><?php echo $value['quote_companyname'] ?></td>
        <td></td>
		<td><?php echo $value['quote_telephone'] ?></td>
        <td></td>
        <td><?php echo $value['quote_email'] ?></td>
        <td><?php echo $value['quote_date'] ?></td>
	<td></td>
		
		<td >
        <a href="<?php echo site_url('admin/request_a_quote/detail/'.$value['quote_id'].'/'.$page); ?>">ttdetail</a> |
        <a style="cursor:pointer;" onclick=" alert('test');">delete</a>    
        
		</tr>
        <?php endforeach; ?>
        <?php endif; ?>
       
 </table><?php */?>
<div class="height10"></div>
 <div class="pagination">
	<?php echo $pagination; ?>
</div>
<div style="height:7px;"></div>
<div class="line"></div>
<?php /*  end of all  content  */ ?>
</div><!-- page noright -->

<?php  $this->load->view(TEMPLATE_NAME.'/admin/footer');?>

